package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.JourFerieDao;
import com.aerotechnic.entities.JourFerie;
import com.aerotechnic.service.interfaces.JourFerieBoIn;

@Service("JourFerieBo")
@Transactional
public class JourFerieBo implements JourFerieBoIn {
	
	@Autowired
	private JourFerieDao jourFerieDao;

	@Override
	public void save(JourFerie myEntity) {
		// TODO Auto-generated method stub
		jourFerieDao.save(myEntity);
	}

	@Override
	public void update(JourFerie myEntity) {
		// TODO Auto-generated method stub
		jourFerieDao.update(myEntity);
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		jourFerieDao.delete(id);
	}

	@Override
	public JourFerie findByID(Long id) {
		// TODO Auto-generated method stub
		return jourFerieDao.findByID(id);
	}

	@Override
	public List<JourFerie> findAll() {
		// TODO Auto-generated method stub
		return jourFerieDao.findAll();
	}

}
